<%--
  Created by IntelliJ IDEA.
  User: CXYZF
  Date: 2024/10/17
  Time: 23:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <title>Person JSP</title>
</head>
<body>
<jsp:useBean id="person" class="javaBeanSamples.person" scope="page">
</jsp:useBean>
<div>
  <ul>
    <li>
      姓名:<jsp:getProperty property="name" name="person"/>
    </li>
    <li>
      性别: <jsp:getProperty property="sex" name="person"/>
    </li>
    <li>
      年龄: <jsp:getProperty property="age" name="person"/>
    </li>
    <li>
      已婚:<jsp:getProperty property="married" name="person"/>
    </li>
  </ul>
</div>
</body>
</html>
